<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" trimDirectiveWhitespaces="true" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:if test="${not poll and empty param.partial}"><jsp:include page="../header.jsp" /></c:if>
<h1 class="wi"><c:out value="${keyword}" />搜索结果</h1>
<table class="queues">
	<tr>
        <th>用户名</th>
        <th>关注</th>
	</tr>
	<c:forEach items="${searchedUsers}" var="suser">
	<tr>
        <td><a href="<c:url value="/user/user_info/${suser.user.user_id}" />"><c:out value="${suser.user.nick_name}" /></a> </td>
        <c:if test="${suser.needFollow}"> <td><a href="<c:url value="/user/follow/${suser.user.user_id}" />">关注</a> </td></c:if>
        <c:if test="${not suser.needFollow}"> <td><a href="<c:url value="/user/cancelfollow/${suser.user.user_id}" />">取消关注</a> </td></c:if>
	</tr>
	</c:forEach>
</table>
<c:if test="${not poll and empty param.partial}"><jsp:include page="../footer.jsp" /></c:if>
